import axios from 'axios'

export const http = axios.create({
    timeout: 1000 * 60 * 5,
});

http.interceptors.request.use((config: any) => {
    return config;
});


http.interceptors.response.use(
    (response: any) => {
        return response;
    },
    (error) => {
        return Promise.reject(error);
    });

export const get = http.get;
export const post = http.post;
export const put = http.put;
export const del = http.delete;
